package mars.ns.core
import java.io.Serializable

/**
 *      trait describing a linkType
 *      This describes why/in what way 2 nodes are connected
 *      @example: Person (likes) Person
 */
trait LinkType extends Equals with Serializable {
	/**
	 * @return	True if the given linkType is an instance of this class
	 */
    override def toString = this.getClass.getName
    override def hashCode = this.getClass.hashCode
    /**
     * A linkType is by default equal by class
     */
    override def canEqual(other : Any) : Boolean = other match {
        case null => false
        case o : LinkType  => this.getClass() == o.getClass()
        case _ => false
    }
}

class DefaultLink extends LinkType
